<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleView" />
	<link href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
	<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css" rel="stylesheet" type="text/css">
	
<script type="text/javascript">
$(document).ready(function() {
	$('[data-accounting]').each(function (){
		var $this = $(this);
		if($this.attr("data-accounting-precision") && ""!=$this.attr("data-accounting-precision")){
			$this.html(accounting.formatMoney($this.attr("data-accounting"),"¥ ",$this.attr("data-accounting-precision")*1));
		}else{
			$this.html(accounting.formatMoney($this.attr("data-accounting"),"¥ "));
		}
	});
});
function getUrl(url){ 
	  $("#versionFrame").attr("src",url);
	}
</script>
</head>
<body>
	<div class="panel panel-default"> 
	  <div class="col-xs-12 panel-heading">
	  <h2 class="panel-title o-v-action pull-left">
	    	销售明细单详细信息 
	    </h2>
	    <%-- <a class="btn btn-default btn-sm pull-right" href="${contextPath}/biz/statement/statementReadJustDetail/list?billNo=${statementReadJustDetail.billNo}">返回</a> --%>
	    <a class="btn btn-default btn-sm pull-right"  role="button" href="javascript:void(0)" onclick="history.go(-1)" >返回</a>
	  </div> 
	  <div>
		   <ul class="nav nav-tabs" id="myTab">
		
			</ul> 
			<div class="tab-content">
			  <div class="tab-pane active" id="home">
			  <tags:message content="${message}"/>
				  	<table class="table table-bordered">
					  <tbody>
					  	<tr>
					  		<td class="text-right" style="width: 20%"><strong>调价单号:</strong></td>
					  		<td>
								${statementReadJustDetail.billNo}
							</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>调价门店:</strong></td>
					  		<td>${statementReadJustDetail.siteId}</td>
					  	</tr> 
					  	<tr>
					  		<td class="text-right"><strong>调价库区:</strong></td>
					  		<td>${statementReadJustDetail.storeId}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>商品条码:</strong></td>
					  		<td>${statementReadJustDetail.barCode}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>行号:</strong></td>
					  		<td>${statementReadJustDetail.itemNo}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>商品编码:</strong></td>
					  		<td>${statementReadJustDetail.mantr}</td>
					  	</tr>  
					  	<tr>
					  		<td class="text-right"><strong>商品名称:</strong></td>
					  		<td>${statementReadJustDetail.mannm}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>原进价:</strong></td>
					  		<td data-accounting="${statementOrderDetail.pupriceOld}"></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>新进价:</strong></td>
					  		<td data-accounting="${statementReadJustDetail.pupriceNew}" ></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>调整数量:</strong></td>
					  		<td>${statementReadJustDetail.quantity}</td>
					  	<tr>
					  		<td class="text-right"><strong>单位调整金额:</strong></td>
					  		<td data-accounting="${statementReadJustDetail.amountUnit}"></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>调整金额:</strong></td>
					  		<td data-accounting="${statementReadJustDetail.amountChange}" ></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>进项税额:</strong></td>
					  		<td data-accounting="${statementReadJustDetail.tax}" ></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>含税额:</strong></td>
					  		<td data-accounting="${statementReadJustDetail.amount}" ></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>备注:</strong></td>
					  		<td>${statementReadJustDetail.remark}</td>
					  	</tr>
					  </tbody>
					  
					</table>
					
					<div class="panel-footer"></div>
				 </div>
				 <div class="tab-pane" id="history">
					<iframe id="versionFrame"   name="versionFrame"  
									scrolling="no" frameborder="no" width="100%"></iframe>
				 </div>
			</div> 
		</div> 
	</div>
	<script type="text/javascript" src="${staticPath}/js/list.js"></script>
	<script src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
	<script src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>
	<script src="${staticPath}/lib/chosen/1.1.0/chosen.jquery.js" type="text/javascript"></script>
	<script src="${staticPath}/js/ossp-jquery-chosen.js" type="text/javascript"></script>
	<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js" type="text/javascript"></script>		
</body>
</html>